<template>
  <div>
    <!-- 未勾选 -->
    <el-card class="box-card" :hidden="importDataType == '软磁性能' || importDataType == '永磁性能' || importDataType == '导电性能'"> 请勾选上表数据 </el-card>
    <!-- 软磁 -->
    <el-card class="box-card" style="margin-top: 10px" v-if="importDataType == '软磁性能'">
      <!-- 静态原始波形 -->
      <el-table ref="measureTable" v-if="tableVisiable[0]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0] == 1" label="裁剪角度/Deg." width="120px" id="cuttingAngle" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" align="center" label="频率/Hz" id="frequency" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" label="温度/Cel.Deg" width="120px" id="temperature" prop="temperature" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="直流磁密/T" width="100px" prop="dcMagneticDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="交流磁密/T" width="100px" prop="acMagneticDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="直流磁场/(A/m)" width="140px" prop="dcMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="交流磁场/(A/m)" width="140px" prop="acMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="有无护套" width="100px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="消除应力退火" width="120px" prop="stressReliefAnnealing" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" label="损耗/(J/kg)" width="120px" align="center" prop="wastage" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" align="center" label="最大磁密/T" width="120px" prop="maximumFluxDensity" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" align="center" label="最大磁场/(A/m)" width="140px" prop="maximumMagneticField" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" align="center" label="最小磁密/T" width="120px" prop="minimumFluxDensity" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" align="center" label="最小磁场/(A/m)" width="140px" prop="minimumMagneticField" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[16] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[17] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[18] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[19] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[20] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
            <el-divider direction="vertical"></el-divider>
            <el-button @click="echartsdownload(scope.row)" size="mini" type="primary" plain>下载测试报告</el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 静态磁化曲线 -->
      <el-table ref="measureTable" v-if="tableVisiable[1]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0] == 1" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" align="center" label="频率/Hz" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" label="温度/Cel.Deg" width="120px" prop="temperature" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="最大磁密/T" width="100px" prop="maximumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="最大磁场/(A/m)" width="140px" prop="maximumMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="最小磁密/T" width="100px" prop="minimumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="最小磁场/(A/m)" width="140px" prop="minimumMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="有无护套" width="100px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="消除应力退火" width="120px" align="center" prop="stressReliefAnnealing" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
            <el-divider direction="vertical"></el-divider>
            <el-button @click="echartsdownload(scope.row)" size="mini" type="primary" plain>下载测试报告</el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 静态磁滞回线线 -->
      <el-table ref="measureTable" v-if="tableVisiable[2]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0] == 1" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" align="center" label="频率/Hz" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" label="温度/Cel.Deg" width="120px" prop="temperature" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="直流磁密/T" width="100px" prop="dcMagneticDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="交流磁密/T" width="100px" prop="acMagneticDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="直流磁场/(A/m)" width="140px" prop="dcMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="交流磁场/(A/m)" width="140px" prop="acMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="有无护套" width="140px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="消除应力退火" width="120px" prop="stressReliefAnnealing" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" label="损耗/(J/kg)" width="120px" align="center" prop="wastage" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" align="center" label="最大磁密/T" width="120px" prop="maximumFluxDensity" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" align="center" label="最大磁场/(A/m)" width="140px" prop="maximumMagneticField" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" align="center" label="最小磁密/T" width="120px" prop="minimumFluxDensity" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" align="center" label="最小磁场/(A/m)" width="140px" prop="minimumMagneticField" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[16] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[17] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[18] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[19] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[20] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
            <el-divider direction="vertical"></el-divider>
            <el-button @click="echartsdownload(scope.row)" size="mini" type="primary" plain>下载测试报告</el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 静态铁损曲线 -->
      <el-table ref="measureTable" v-if="tableVisiable[3]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0] == 1" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" align="center" label="频率/Hz" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" align="center" label="温度/Cel.Deg." width="120px" prop="temperature" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="最大铁损/(J/kg)" width="140px" prop="maximumIronLoss" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="最大磁密/T" width="100px" prop="maximumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="最小铁损/(J/kg)" width="140px" prop="minimumIronLoss" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="最小磁密/T" width="100px" prop="minimumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="有无护套" width="100px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="消除应力退火" width="120px" align="center" prop="stressReliefAnnealing" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
            <el-divider direction="vertical"></el-divider>
            <el-button @click="echartsdownload(scope.row)" size="mini" type="primary" plain>下载测试报告</el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 动态原始波形 -->
      <el-table ref="measureTable" v-if="tableVisiable[4]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0]" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" align="center" label="频率/Hz" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" label="温度/Cel.Deg" width="120px" prop="temperature" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="直流磁密/T" width="100px" prop="dcMagneticDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="交流磁密/T" width="100px" prop="acMagneticDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="直流磁场/(A/m)" width="140px" prop="dcMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="交流磁场/(A/m)" width="140px" prop="acMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="有无护套" width="140px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="消除应力退火" width="120px" prop="stressReliefAnnealing" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" label="损耗/(W/kg)" width="120px" align="center" prop="wastage" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" label="视在功率(VA/kg)" width="130px" prop="apparentPower" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" label="电势波形因子" width="120px" align="center" prop="potentialFactor" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" align="center" label="最大磁密/T" width="110px" prop="maximumFluxDensity" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" align="center" label="最大磁场/(A/m)" width="140px" prop="maximumMagneticField" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[16] == 1" align="center" label="最小磁密/T" width="120px" prop="minimumFluxDensity" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[17] == 1" align="center" label="最小磁场/(A/m)" width="140px" prop="minimumMagneticField" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[18] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[19] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[20] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[21] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[22] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
            <el-divider direction="vertical"></el-divider>
            <el-button @click="echartsdownload(scope.row)" size="mini" type="primary" plain>下载测试报告</el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 动态磁化曲线 -->
      <el-table ref="measureTable" v-if="tableVisiable[5]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0] == 1" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" align="center" label="频率/Hz" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" label="温度/Cel.Deg" width="120px" prop="temperature" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="直流磁密/T" width="120px" prop="dcMagneticDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="最大磁密/T" width="120px" prop="maximumFluxDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="最大磁场/(A/m)" width="140px" prop="maximumMagneticField" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="最小磁密/T" width="120px" prop="minimumFluxDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="最小磁场/(A/m)" width="140px" prop="minimumMagneticField" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="有无护套" width="140px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" label="消除应力退火" width="120px" prop="stressReliefAnnealing" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[16] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
            <el-divider direction="vertical"></el-divider>
            <el-button @click="echartsdownload(scope.row)" size="mini" type="primary" plain>下载测试报告</el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 动态磁滞回线 -->
      <el-table ref="measureTable" v-if="tableVisiable[6]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0] == 1" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" label="频率/Hz" align="center" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" label="温度/Cel.Deg" width="120px" prop="temperature" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="直流磁密/T" width="100px" prop="dcMagneticDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="交流磁密/T" width="100px" prop="acMagneticDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="直流磁场/(A/m)" width="140px" prop="dcMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="交流磁场/(A/m)" width="140px" prop="acMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="最大磁密/T" width="100px" prop="maximumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="最大磁场/(A/m)" width="140px" prop="maximumMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="最小磁密/T" width="100px" prop="minimumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="最小磁场/(A/m)" width="140px" prop="minimumMagneticField" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" label="有无护套" width="100px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" label="消除应力退火" width="120px" align="center" prop="stressReliefAnnealing" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" label="损耗/(W/kg)" width="120px" align="center" prop="wastage" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[16] == 1" label="视在功率(VA/kg)" width="130px" prop="apparentPower" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[17] == 1" label="电势波形因子" width="120px" align="center" prop="potentialFactor" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[18] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[19] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[20] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[21] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[22] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
            <el-divider direction="vertical"></el-divider>
            <el-button @click="echartsdownload(scope.row)" size="mini" type="primary" plain>下载测试报告</el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 动态铁损曲线 -->
      <el-table ref="measureTable" v-if="tableVisiable[7]" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column v-if="conditionList.visableList[0] == 1" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[1] == 1" align="center" label="频率/Hz" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[2] == 1" label="温度/Cel.Deg" width="120px" prop="temperature" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[3] == 1" label="直流磁密/T" width="100px" prop="dcMagneticDensity" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[4] == 1" label="最大铁损/(W/kg)" width="140px" prop="maximumIronLoss" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[5] == 1" label="最大磁密/T" width="100px" prop="maximumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[6] == 1" label="最小铁损/(W/kg)" width="140px" prop="minimumIronLoss" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[7] == 1" label="最小磁密/T" width="100px" prop="minimumFluxDensity" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[8] == 1" label="有无护套" width="100px" prop="sheath" align="center" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[9] == 1" label="叠压方向应力/MPa" width="160px" prop="overlyingStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[10] == 1" label="平行应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip align="center"></el-table-column>
        <el-table-column v-if="conditionList.visableList[11] == 1" label="消除应力退火" width="120px" align="center" prop="stressReliefAnnealing" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[12] == 1" align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column v-if="conditionList.visableList[13] == 1" align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[14] == 1" align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[15] == 1" align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column v-if="conditionList.visableList[16] == 1" align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1" :current-page="pageVo.pagenum" :page-sizes="[10, 20]" :page-size="pageVo.pagesize" layout="total, sizes, prev, pager, next, jumper" :total="total1"> </el-pagination>
    </el-card>
    <!-- 永磁 -->
    <el-card class="box-card" style="margin-top: 10px" v-if="importDataType == '永磁性能'">
      <el-table ref="measureTable" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column align="center" label="温度/Cel.Deg" prop="temperature" width="140px" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="Br/T" width="80px" prop="brT" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="Hcb/(kA/m)" width="120px" prop="hcb" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="Hcj/(kA/m)" width="120px" prop="hcj" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="BHm/(kJ/m^3)" width="140px" prop="bhm" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="Hmax/(kA/m)" width="120px" prop="hmax" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="测量日期" prop="testDate" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1" :current-page="pageVo.pagenum" :page-sizes="[10, 20]" :page-size="pageVo.pagesize" layout="total, sizes, prev, pager, next, jumper" :total="total1"> </el-pagination>
    </el-card>
    <!-- 导电 -->
    <el-card class="box-card" style="margin-top: 10px" v-if="importDataType == '导电性能'">
      <el-table ref="measureTable" :data="conditionList.datalist" border style="margin-top: 10px">
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column align="center" label="裁剪角度/Deg." width="120px" prop="cuttingAngle" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="测量间距/m" width="120px" prop="measuringDistance" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="频率/Hz" prop="frequency" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="温度/Cel.Deg" width="120px" prop="temperature" show-overflow-tooltip></el-table-column>
        <!-- <el-table-column align="center" label="应力/MPa" width="120px" prop="parallelStress" show-overflow-tooltip></el-table-column> -->
        <el-table-column align="center" label="消除应力退火" width="120px" prop="stressReliefAnnealing" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="测量标准" prop="standard" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click.native.stop="downLoadFileName(scope.row.standard)">{{ scope.row.standard }}</el-button>
          </template>
        </el-table-column>
        <el-table-column align="center" label="测试员" prop="testControler" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="备注" prop="remarks" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="文件名" prop="fileName" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" fixed="right" label="操作" width="200px">
          <template slot-scope="scope">
            <el-button @click="collect(scope.row)" size="mini" type="primary" plain>收藏</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1" :current-page="pageVo.pageNum" :page-sizes="[10, 20]" :page-size="pageVo.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total1"> </el-pagination>
    </el-card>
  </div>
</template>

<script>
import { Message } from 'element-ui'
export default {
  props: {
    importDataType: ''
    //不同的地方用到该组件，用于控制按钮的显隐
  },
  data() {
    return {
      externalDataSource: {}, //外部数据源
      exportMeaCondFlag: true,
      arr: [],
      curve: '',
      display: '',
      conditionInfo: {
        curveTypes: '',
        timeTypes: '',
        productId: ''
      },
      total: 10,
      total1: 10,
      //测量条件分页
      pageVo: {
        //当前的页数
        pageNum: 1,
        //当前每页显示多少条数据
        pageSize: 10
      },
      tableVisiable: [0, 0, 0, 0, 0, 0, 0, 0],
      sampleSize: '',
      conditionList: {
        datalist: [],
        visableList: []
      },
      //静态原始波形
      staticOriginalWave: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //未知
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      //静态磁化曲线
      staticMagnetizingCurve: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //未知
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      //静态磁滞回线
      staticHysteresisLoop: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //未知
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      //静态铁损曲线
      staticIronLossCurve: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //未知
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      //动态原始波形
      dynamicOriginalWave: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //未知
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      //动态磁化曲线
      dynamicMagnetizingCurve: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      //动态磁滞回线
      dynamicHysteresisLoop: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      //动态铁损曲线
      dynamicIronLossCurve: [
        {
          //实心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //叠心圆环
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //爱泼斯坦方圈
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //一维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //微小异形
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //卷绕铁心
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //二维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //三维单片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //未知
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //定子冲片
          datalist: [],
          visableList: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
          //闭路铁心
          datalist: [],
          visableList: []
        },
        {
          //开路铁心
          datalist: [],
          visableList: []
        }
      ],
      // 软磁曲线类型
      ruanCiCurveOptions: [
        {
          label: '原始波形',
          value: '原始波形'
        },
        {
          label: '磁化曲线',
          value: '磁化曲线'
        },
        {
          label: '磁滞回线',
          value: '磁滞回线'
        },
        {
          label: '铁损曲线',
          value: '铁损曲线'
        }
      ],
      // 软磁时间形式
      ruanCiDisplayOptions: [
        {
          label: '动态',
          value: '动态'
        },
        {
          label: '静态',
          value: '静态'
        }
      ],
      // 永磁曲线类型
      yongCiCurveOptions: [
        {
          label: '原始波形',
          value: '原始波形'
        },
        {
          label: '磁滞回线',
          value: '磁滞回线'
        },
        {
          label: '退磁曲线',
          value: '退磁曲线'
        }
      ],
      // 永磁时间形式
      yongCiDisplayOptions: [
        {
          label: '静态',
          value: '静态'
        }
      ],
      // 导电曲线类型
      daoDianCurveOptions: [
        {
          label: '伏安曲线',
          value: '伏安曲线'
        },
        {
          label: '电阻曲线',
          value: '电阻曲线'
        },
        {
          label: '电阻率曲线',
          value: '电阻率曲线'
        },
        {
          label: '电导率曲线',
          value: '电导率曲线'
        }
      ],
      // 导电时间形式
      daoDianDisplayOptions: [
        {
          label: '静态',
          value: '静态'
        }
      ]
    }
  },
  methods: {
    judge1(curve, display, sampleSize) {
      this.conditionInfo.curveTypes = curve
      this.conditionInfo.timeTypes = display
      this.sampleSize = sampleSize
      this.showGraph()
    },
    // judge2(display, sampleSize) {
    //   //时间形式选择判断
    //   this.conditionInfo.timeTypes = display
    //   this.sampleSize = sampleSize
    //   this.showGraph()
    // },
    showGraph() {
      if (this.importDataType == '软磁性能') {
        if (this.conditionInfo.curveTypes == '' || this.conditionInfo.timeTypes == '' || this.sampleSize == '') {
          return false
        } else if (this.conditionInfo.curveTypes == '原始波形' && this.conditionInfo.timeTypes == '静态') {
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[0] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.staticOriginalWave[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.staticOriginalWave[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.staticOriginalWave[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.staticOriginalWave[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.staticOriginalWave[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.staticOriginalWave[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.staticOriginalWave[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.staticOriginalWave[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.staticOriginalWave[8]
          }
        } else if (this.conditionInfo.curveTypes == '磁化曲线' && this.conditionInfo.timeTypes == '静态') {
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[1] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.staticMagnetizingCurve[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.staticMagnetizingCurve[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.staticMagnetizingCurve[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.staticMagnetizingCurve[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.staticMagnetizingCurve[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.staticMagnetizingCurve[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.staticMagnetizingCurve[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.staticMagnetizingCurve[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.staticMagnetizingCurve[8]
          }
        } else if (this.conditionInfo.curveTypes == '磁滞回线' && this.conditionInfo.timeTypes == '静态') {
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[2] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.staticHysteresisLoop[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.staticHysteresisLoop[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.staticHysteresisLoop[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.staticHysteresisLoop[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.staticHysteresisLoop[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.staticHysteresisLoop[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.staticHysteresisLoop[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.staticHysteresisLoop[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.staticHysteresisLoop[8]
          }
        } else if (this.conditionInfo.curveTypes == '铁损曲线' && this.conditionInfo.timeTypes == '静态') {
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[3] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.staticIronLossCurve[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.staticIronLossCurve[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.staticIronLossCurve[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.staticIronLossCurve[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.staticIronLossCurve[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.staticIronLossCurve[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.staticIronLossCurve[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.staticIronLossCurve[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.staticIronLossCurve[8]
          }
        } else if (this.conditionInfo.curveTypes == '原始波形' && this.conditionInfo.timeTypes == '动态') {
          console.log('2222')
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[4] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.dynamicOriginalWave[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.dynamicOriginalWave[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.dynamicOriginalWave[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.dynamicOriginalWave[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.dynamicOriginalWave[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.dynamicOriginalWave[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.dynamicOriginalWave[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.dynamicOriginalWave[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.dynamicOriginalWave[8]
          }
        } else if (this.conditionInfo.curveTypes == '磁化曲线' && this.conditionInfo.timeTypes == '动态') {
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[5] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.dynamicMagnetizingCurve[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.dynamicMagnetizingCurve[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.dynamicMagnetizingCurve[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.dynamicMagnetizingCurve[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.dynamicMagnetizingCurve[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.dynamicMagnetizingCurve[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.dynamicMagnetizingCurve[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.dynamicMagnetizingCurve[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.dynamicMagnetizingCurve[8]
          }
        } else if (this.conditionInfo.curveTypes == '磁滞回线' && this.conditionInfo.timeTypes == '动态') {
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[6] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.dynamicHysteresisLoop[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.dynamicHysteresisLoop[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.dynamicHysteresisLoop[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.dynamicHysteresisLoop[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.dynamicHysteresisLoop[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.dynamicHysteresisLoop[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.dynamicHysteresisLoop[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.dynamicHysteresisLoop[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.dynamicHysteresisLoop[8]
          }
        } else if (this.conditionInfo.curveTypes == '铁损曲线' && this.conditionInfo.timeTypes == '动态') {
          this.tableVisiable = [0, 0, 0, 0, 0, 0, 0, 0]
          this.tableVisiable[7] = 1
          if (this.sampleSize == '实心圆环') {
            this.conditionList = this.dynamicIronLossCurve[0]
          } else if (this.sampleSize == '叠片圆环') {
            this.conditionList = this.dynamicIronLossCurve[1]
          } else if (this.sampleSize == '爱泼斯坦方圈') {
            this.conditionList = this.dynamicIronLossCurve[2]
          } else if (this.sampleSize == '一维单片') {
            this.conditionList = this.dynamicIronLossCurve[3]
          } else if (this.sampleSize == '微小异形') {
            this.conditionList = this.dynamicIronLossCurve[4]
          } else if (this.sampleSize == '卷绕铁心') {
            this.conditionList = this.dynamicIronLossCurve[5]
          } else if (this.sampleSize == '二维单片') {
            this.conditionList = this.dynamicIronLossCurve[6]
          } else if (this.sampleSize == '三维单片') {
            this.conditionList = this.dynamicIronLossCurve[7]
          } else if (this.sampleSize == '未知') {
            this.conditionList = this.dynamicIronLossCurve[8]
          }
        } else {
          return false
        }
        this.getCondition()
      } else if (this.importDataType == '永磁性能') {
        console.log('yongci')
        if (this.conditionInfo.curveTypes !== '' && this.conditionInfo.timeTypes !== '') {
          this.getCondition()
        }
      } else if (this.importDataType == '导电性能') {
        if (this.conditionInfo.curveTypes !== '' && this.conditionInfo.timeTypes !== '') {
          this.getCondition()
        }
      }
    },
    /*************分页函数**************/
    handleSizeChange1(newSize) {
      this.pageVo.pageSize = newSize
      this.getCondition()
    },
    handleCurrentChange1(newPage) {
      this.pageVo.pageNum = newPage
      this.getCondition()
    },
    /*************分页函数**************/

    //获取表头
    getCondition() {
      console.log('yongci1')
      //通过ref获取el-table的表头数据
      setTimeout(() => {
        let columnTitle = this.$refs.measureTable.$children
          .filter(x => {
            return x._props.prop !== undefined
            // && x._props.prop !== 'fileName'
          })
          .map(x => {
            return new Object({
              prop: x._props.prop,
              label: x._props.label
            })
          })
        this.$emit('getHeader', columnTitle)
      }, 100)
    },
    downloadAttachment(dataName) {
      console.log('dataName----', dataName)
      this.axios({
        baseURL: 'http://59.172.104.174:30669',
        url: '/attachmentUpload/downLoadAttachmentFile',
        method: 'GET',
        params: {
          filename: dataName
        },
        responseType: 'blob' // 表明返回服务器返回的数据类型
      }).then(res => {
        let blob = new Blob([res.data])
        let fileName = dataName
        if (window.navigator.msSaveOrOpenBlob) {
          navigator.msSaveBlob(blob, fileName)
        } else {
          var link = document.createElement('a')
          link.href = window.URL.createObjectURL(blob)
          link.download = fileName
          link.click()
          //释放内存
          window.URL.revokeObjectURL(link.href)
        }
      })
    },
    downLoadFileName(dataName) {
      console.log('dataName', dataName)
      if(dataName == '未知' || dataName == '') {
        Message({
          message: '数据库暂未收录该消息，欢迎使用附件上传',
          type: 'warning',
          center: true,
          customClass: 'mzindex',
        })
        return
      }
      this.axios({
        baseURL: 'http://59.172.104.174:31770',
        url: '/basicsExecutionStandard/getFilenameByNumber',
        method: 'GET',
        params: {
          number: dataName
        },
      }).then(res => {
        console.log('res----', res.data.result.filename)
        if(res.data.result.filename != '' && res.data.result.filename != null){
          this.downloadAttachment(res.data.result.filename)
        } else {
          Message({
            message: '数据库暂未收录该消息，欢迎使用附件上传',
            type: 'warning',
            center: true,
            customClass: 'mzindex',
          })
        }
      })
    },
  }
}
</script>

<style></style>
